import request from '@/utils/request'

// 获取城市列表数据
export const getCityList = (level) => {
  return request.get('/area/city', {
    params: level
  })
}
// 热门城市
export const hotCity = () => {
  return request.get('/area/hot')
}
// 小区关键字查询
export const cityKeyWords = ({ name, id }) => {
  return request.get('/area/community', {
    params: {
      name,
      id
    }
  })
}
// 根据城市名 查询该城市信息
export const getCityByName = (name) => {
  return request.get('/area/info', {
    params: { name }
  })
}
